import { createApp, Directive } from 'vue'
import vueWechatTitle from "vue-wechat-title"
// import ElementPlus from 'element-plus'
import { pinia } from "./store/index";
import router from "./router/index";
import * as directives from "./directives/index";
import App from './App.vue'
// import 'element-plus/dist/index.css'

const app = createApp(App)

Object.entries(directives).forEach(([key, directive]) => {
  if (directive.type === "global") {
    app.directive(key, directive)
  }
})

// app.use(ElementPlus)
app.use(router)
app.use(vueWechatTitle)
app.use(pinia)

app.mount('#app')
